$OpenBSD: patch-configure_ac,v 1.1 2013/04/25 16:16:28 sebastia Exp $
--- configure.ac.orig	Fri Mar  8 10:53:19 2013
+++ configure.ac	Fri Mar 29 12:49:06 2013
@@ -446,12 +446,17 @@ AC_ARG_ENABLE(speech, 
 BUILD_SPEECH=
 
 # has flite, for speech synthesis.
+orig_CPPFLAGS="${CPPFLAGS}"
+orig_LDFLAGS="${LDFLAGS}"
+LDFLAGS="-L${TRUEPREFIX}/lib -lsndio"
 AC_CHECK_LIB(flite, new_utterance, have_speech=yes, have_speech=no)
 AC_CHECK_HEADERS(flite/flite.h)
 if test $have_speech = yes -a $enable_speech = yes; then
    BUILD_SPEECH="speech say"
 fi
 AC_SUBST(BUILD_SPEECH)
+CPPFLAGS="${orig_CPPFLAGS}"
+LDFLAGS="${orig_LDFLAGS}"
 
 #--------------------------------------------------------------------
 # Find CUPS
